Skip to content

Fix evapprod indexing typo#1396

Merged
mgduda merged 1 commit intoMPAS-Dev:developfrom
jihyeonjang:bugfix_evapprod_develop
Mar 23, 2026
Merged

Fix evapprod indexing typo#1396
mgduda merged 1 commit intoMPAS-Dev:developfrom
jihyeonjang:bugfix_evapprod_develop

Conversation

@jihyeonjang
Copy link
Copy Markdown
Collaborator

@jihyeonjang jihyeonjang commented Jan 12, 2026

This PR fixes a typo in src/core_atmosphere/physics/mpas_atmphys_interface.F where evapprod(k,k) was used instead of evapprod(k,i) (introduced in 8e0057689d).
This issue was reported in Issue #1395.

This corrects the diagnostic output and should not affect model results.

I based the fix on the commit where the typo was introduced, so it can be applied to older MPAS versions without bringing in unrelated changes.

@mgduda
Copy link
Copy Markdown
Contributor

mgduda commented Mar 20, 2026

@jihyeonjang The fix looks good to me. Would you be willing to add more detail to the commit message (the PR description is fine)? I think it's helpful when looking back through the commit log years after commits were made to be able to get a better idea of exactly what was changed in a commit based on the log entry. The information from the PR description would probably work well if integrated into the commit message. If you have any questions about amending a commit, just let me know and I'll be glad to help.

@jihyeonjang jihyeonjang force-pushed the bugfix_evapprod_develop branch 2 times, most recently from ee6a49a to bc42b1d Compare March 20, 2026 23:30
@jihyeonjang
Copy link
Copy Markdown
Collaborator Author

jihyeonjang commented Mar 20, 2026

@mgduda Thank you for reviewing this PR. I added the commit message, similar to the PR description. Please let me know if anything should be revised. Thanks!

Copy link
Copy Markdown
Contributor

@mgduda mgduda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for reworking the commit message -- this looks great!

@mgduda
Copy link
Copy Markdown
Contributor

mgduda commented Mar 23, 2026

@jihyeonjang Actually, although the commit message suggests the fix is based on the commit where the typo was introduced (i.e., 8e00576), it looks like this PR branch is actually based on 447de92 . If you don't object, I can rebase this PR branch onto 8e00576 before merging.

@jihyeonjang
Copy link
Copy Markdown
Collaborator Author

jihyeonjang commented Mar 23, 2026

Sure. That would be better. Thank you for checking the details.

@mgduda
Copy link
Copy Markdown
Contributor

mgduda commented Mar 23, 2026

Sure. That would be better. Thank you for checking the details.

After rebasing the changes in this branch onto 8e00576, I think the commit message should still be correct.

This fixes a typo in src/core_atmosphere/physics/mpas_atmphys_interface.F
where evapprod(k,k) was used instead of evapprod(k,i), introduced in 8e00576.

The fix corrects diagnostic output, but should not affect the model state
or simulation results.

The change is based on the commit where the typo was introduced, so it can be
applied cleanly to older MPAS versions without unrelated changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants